import Vue from "vue"
import Vuex from "vuex"
import moduleCart from "@/store/cart.js"
import moduleUser from "@/store/user.js"
//注册Vuesx在vue中
Vue.use(Vuex);
//创建vuex的实例

const store = new Vuex.Store({
	//在这里进行挂载模块
	modules:{
		m_cart:moduleCart,
		m_user:moduleUser
	}
})
//向外面共享Store的实例对象
export default store
